package com.uyaer.magic.layer
{
	import com.uyaer.magic.levels.LevelManager;
	
	import flash.display.Bitmap;
	import flash.display.Sprite;
	import flash.events.MouseEvent;
	
	public class MenuLayer extends Sprite
	{
		[Embed(source="/../assets/menu/reset.png")]
		private var MENU_RESET:Class;
		public function MenuLayer()
		{
			var resetBtn:Bitmap = new MENU_RESET();
			addChild(resetBtn);
			this.addEventListener(MouseEvent.CLICK,onClickHandler);
		}
		
		private function onClickHandler(e:MouseEvent):void{
			LevelManager.i.reset();			
		}
	}
}